package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceRouteAlarmSetting对象", description = "")
public class DeviceRouteAlarmSetting extends Model<DeviceRouteAlarmSetting> {

  private static final long serialVersionUID = 1L;

  // "主键")
  @TableId(value = "alarm_setting_id", type = IdType.AUTO)
  private Integer alarmSettingId;

  // "opm-sn")
  private String opmSn;

  // "opm通道")
  private Integer channel;

  // "绝对光功率阈值")
  private BigDecimal lightPowerLimit;

  // "相对功率阈值")
  private BigDecimal relativePowerLimit;

  // "路由id")
  private Integer routeId;

  // "1=绝对报警，2=相对报警")
  private Integer opmAlarmType;

  private BigDecimal powerStandard;

  private BigDecimal powerUrg;

  private BigDecimal powerMain;

  private BigDecimal powerSec;

  private BigDecimal powerProm;

  @Override
  public Serializable pkVal() {
    return this.alarmSettingId;
  }

}
